﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLPM.DAO;
using QLPM.DTO;
using System.Data;


namespace QLPM.BUS
{
    public class KhamBenhBUS
    {
        public int ThemBNvaoDSKhamBenh(KhamBenh kb)
        {
            return new KhamBenhDAO().ThemVaoDSKhamBenh(kb);
        }

        public int LayMaKhamBenh(KhamBenh kb)
        {
            return new KhamBenhDAO().LayMaKhamBenh(kb);
        }

        public int ThemTongTien(int tongtien, int makhambenh)
        {
            return new KhamBenhDAO().CapNhatTongTien(tongtien, makhambenh);
        }

        public int KiemTraBenhNhan(int mabn, string ngaykham)
        {
            return new KhamBenhDAO().KiemTraBN(mabn, ngaykham);
        }

        public int ThemTrieuChung(string trieuChung, int maLoaiBenh, int maKhamBenh)
        {
            return new KhamBenhDAO().ThemTrieuChung(trieuChung, maLoaiBenh, maKhamBenh);
        }

        public DataTable DoanhThuTheoNgay(int thang, int nam)
        {
            return new KhamBenhDAO().DoanhThuTheoNgay(thang, nam);
        }
    }
}
